package com.steptime;

import cn.hutool.core.date.DateTime;
import cn.hutool.core.date.DateUtil;

import java.util.Date;

public class Demo {
    public static void main(String[] args) {

        System.out.println(Integer.MAX_VALUE);      // 2147483647
        System.out.println(Integer.MAX_VALUE + 1);  // -2147483648

        long maxUnsignedInt = (1L << 32) - 1;
        String string = String.valueOf(maxUnsignedInt);
        int unsignedInt = Integer.parseUnsignedInt(string, 10);
        String string2 = Integer.toUnsignedString(unsignedInt, 10);

        System.out.println(string2);
        try {
            Integer.parseInt(string, 10);
        }
        catch (NumberFormatException e) {
            System.err.println("could not parse signed int of " + maxUnsignedInt);
        }


        Date todayDate = new DateTime();
        String today = DateUtil.format(todayDate, "yyyy年MM月dd日");
        System.out.println(today);
    }
}
